package com.abel.bigwater.dataserver.model

import com.abel.bigwater.model.JsonHelper
import com.alibaba.fastjson.annotation.JSONField
import java.util.*

data class FlowRtuMeter(
        var station: String? = null,

        var longitude: Float? = null,

        var latitude: Float? = null,

        /**
         * 每个脉冲表示的水量（单位: 升)
         */
        var literPulse: Int = 1000,

        /**
         * 静态IP，适合VPN网络
         */
        var staticIp: String? = null,

        var forwardChannel: FlowChannelBase? = null,
        var revertChannel: FlowChannelBase? = null,
        var pressureChannel: FlowChannelBase? = null,
        var flowChannel: FlowChannelBase? = null,
        var netChannel: FlowChannelBase? = null,

        /**
         * 水表尺寸
         */
        var meterSize: Int? = null,

        /**
         * 水表型号
         */
        var meterModel: String? = null,

        /**
         * 水表编号
         */
        var meterCode: String? = null,

        /**
         * 水表名称
         */
        var meterName: String? = null,

        /**
         * 水司ID
         */
        var firmId: String? = null,

        /**
         * 卡号
         */
        var simCard: String? = null,

        /**
         * CMCC / CU / CT
         * 中国移动、中国联通、中国电信
         */
        var isp: String? = null) {
    /**
     * 安装日期
     */
    @JSONField(format = JsonHelper.FULL_DATE_FORMAT)
    var installDate: Date? = null

    /**
     * 重置日期(即数据上线日期)
     */
    @JSONField(format = JsonHelper.FULL_DATE_FORMAT)
    var resetDate: Date? = null
}